package com.shop.entity;

import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Accessors(chain = true)//链式写法
@NoArgsConstructor
@Data
public class LoginUser {
    private Long id;

    private String userName;
    @JsonIgnore
    private String pwd;


    public LoginUser(Long id, String userName, String pwd) {
        this.id = id;
        this.userName = userName;
        this.pwd = pwd;
    }

    public LoginUser( String userName, String pwd) {

        this.userName = userName;
        this.pwd = pwd;
    }

}